package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrEntityVO;
import com.atguigu.gulimall.product.vo.AttrRespVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author wuweiji557
 * @email wuweiji557@gmail.com
 * @date 2024-11-07 22:52:41
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);


    PageUtils queryBaseAttrPage(Map<String, Object> params, Long categoryId, String attrType);
    void saveAttr(AttrEntityVO attr);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);

    PageUtils queryNoAttrPage(Long attrgroupId, Map<String, Object> params);

    void removeAttrAndRelation(Long[] attrIds);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

